import os, sys
appdir = 'C:\Documents and Settings\Administrator\Mijn documenten\FobData\Frans2'
fname = os.path.join(appdir, 'test_ab.txt')
importfile = open(fname, 'r', 1)
lines = importfile.readlines()

for i in range (0, 1):#len (lines)):
    stance = (lines[i]).split()
    stanceflt = [0.0, 0.0, 0.0]
    for j in stance:
        stanceflt.append(float(j))
    stanceflt.insert(15, 0.0)

    #stanceflt = [1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8]
    #for k in range(0, len(stanceflt)/3):
    #    stanceflt.insert(k*3, stanceflt[k*3+1])        
    #    stanceflt.pop(k*3+2)
        
        
    print stanceflt

    